package com.myblog.service.impl;

import com.myblog.mapper.Diarymapper;
import com.myblog.pojo.Diary;
import com.myblog.service.Diaryservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Diaryserviceimpl implements Diaryservice {

    @Autowired
    private Diarymapper diarymapper;
    @Override
    public List<Diary> finddiary() {
        return diarymapper.finddiary();
    }

}
